package drds.data_migrate.task_group.task.data_exchange.exchanger;

import drds.common.Author;
import drds.data_migrate.Authors;
import drds.data_migrate.task_group.task.data_exchange.record.column.Column;
import drds.data_migrate.task_group.task.data_exchange.record.column.ColumnType;
import lombok.Getter;
import lombok.Setter;

@Author(name = Authors.LI_YANG)
public class DirtyColumn extends Column
{
    @Setter
    @Getter
    private int index;

    private DirtyColumn(Column column, int index)
    {
        super(column.getObject(), ColumnType.DIRTY);
        this.setIndex(index);
    }

    public static Column asDirtyColumn(final Column column, int index)
    {
        return new DirtyColumn(column, index);
    }


}
